<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <p th:text="${name}"></p>
    <p th:text="${user.name}"></p>


    <table border="1">

        <tr><th>下标</th><th>序号</th><th>大小</th><th>当前变量</th><th>偶数</th><th>奇数</th><th>第一个</th><th>最后一个</th> <th>姓名</th></tr>
        <tr th:each="user,userStart:${list}">
            <td th:text="${userStart.index}"></td>
            <td th:text="${userStart.count}"></td>
            <td th:text="${userStart.size}"></td>
            <td th:text="${userStart.current.name}"></td>
            <td th:text="${userStart.even}"></td>
            <td th:text="${userStart.odd}"></td>
            <td th:text="${userStart.first}"></td>
            <td th:text="${userStart.last}"></td>

            <td th:text="${user.name}"></td>
        </tr>

    </table>

    <div th:if="${flag}">
        Hello
    </div>


</body>
</html>